/**
 * 主城
 */
module game {

    export class HomeCity extends eui.Component {
        public btn3: eui.Image;
        public btn1: eui.Image;
        public btn2: eui.Image;

        public constructor() {
            super();
            this.addEventListener(eui.UIEvent.COMPLETE, this.createCompleteEvent, this);
            this.skinName = "HomeCitySkin";
        }

        public createCompleteEvent(event: eui.UIEvent): void {
            this.removeEventListener(eui.UIEvent.COMPLETE, this.createCompleteEvent, this);
            // game.AppFacade.getInstance().registerMediator( new RoleMediator(this) );

            GameLayerManager.gameLayer().sceneLayer.addChild(this);
        }

        //        public closeBtn: eui.Button;
        // public settingButton:egret.gui.Button;
        // public levelButton:IconButton;


        public partAdded(partName: string, instance: any): void {
            super.partAdded(partName, instance);
        }
    }
}